﻿using System;
using System.Collections.Generic;
using System.Text;
using DH.Share.Comm.InterFace;
using DH.Share.Comm.customerclass;
using System.Threading.Tasks;

namespace DH.Share.Comm.DataHelp
{
    public class LinkSource
    {
        private readonly InitSetInfo _initSetInfo;
        private IDataHelps _dataHelps ;
        public delegate Task<bool> GetSelect(string commandtxt);
        public IDataHelps DataHelps  
        {
            get { return _dataHelps ; }
            private set { _dataHelps  = value; }
        }
        public LinkSource(IInitSetInfo initSetInfo)
        {
            if (initSetInfo !=null)
            {
                _initSetInfo = (InitSetInfo)initSetInfo;
                switch (_initSetInfo.DbTypeName)
                {
                    case "sql":
                         
                        break;
                    case "excel":
                        break;
                }
            }
        }
  
    }
}
